<template>

  <router-view></router-view>
  <div class="bg">
    <top></top>
    <OneEssayBox :essayId="essayId"></OneEssayBox>
  </div>
</template>

<script>
import Top from "@/components/Top";
import OneEssayBox from "@/components/OneEssayBox";
// import axios from "@/settings/axios";
import { useRoute } from 'vue-router';
export default {
  name: "EssayInfo",
  components: { OneEssayBox, Top},
  mounted() {
    this.$store.commit('updateQueryType', "essay");
    this.essayId = useRoute().query.essayId
  },
  data() {
    return {
      essayId : ""
    }
  }
};
</script>

<style scoped>
.bg{
  background-color: rgba(243,243,243);
}
</style>
